package jtest;

import com.ai5suoai.ams.entity.AbstractToVo;
import com.ai5suoai.ams.entity.User;
import com.ai5suoai.ams.web.vo.UserVo;

import java.util.Date;

/**
 * @author chenzhenjia
 * @since 16/3/31
 */
public class ToVoEntity extends AbstractToVo<UserVo, ToVoEntity> {
    private User user = new User();

    @Override
    public UserVo toVo() {
        return super.toVo();
    }

    @Override
    public ToVoEntity getThis() {
        return this;
    }

    public String getId() {
        return user.getId();
    }

    public void setId(String id) {
        user.setId(id);
    }

    public String getName() {
        return user.getName();
    }

    public void setName(String name) {
        user.setName(name);
    }

    public String getPassword() {
        return user.getPassword();
    }

    public void setPassword(String password) {
        user.setPassword(password);
    }

    public String getEmail() {
        return user.getEmail();
    }

    public void setEmail(String email) {
        user.setEmail(email);
    }

    public String getActivationKey() {
        return user.getActivationKey();
    }

    public void setActivationKey(String activationKey) {
        user.setActivationKey(activationKey);
    }

    public String getResetKey() {
        return user.getResetKey();
    }

    public void setResetKey(String resetKey) {
        user.setResetKey(resetKey);
    }

    public Date getResetDate() {
        return user.getResetDate();
    }

    public void setResetDate(Date resetDate) {
        user.setResetDate(resetDate);
    }

    public String getUsername() {
        return user.getUsername();
    }

    public void setUsername(String username) {
        user.setUsername(username);
    }

    public boolean isActivated() {
        return user.isActivated();
    }

    public void setActivated(boolean activated) {
        user.setActivated(activated);
    }
}
